<?php /*a:6:{s:41:"F:\WWW\youni\view\admin\config\group.html";i:1570610514;s:40:"F:\WWW\youni\view\admin\common\base.html";i:1570370238;s:42:"F:\WWW\youni\view\admin\common\header.html";i:1567752197;s:39:"F:\WWW\youni\view\admin\common\css.html";i:1570602032;s:42:"F:\WWW\youni\view\admin\common\footer.html";i:1567752456;s:38:"F:\WWW\youni\view\admin\common\js.html";i:1570520786;}*/ ?>


    <!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>优你后台</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->



    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>

<link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="/static/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="/static/admin/css/animate.css" rel="stylesheet">
<link href="/static/admin/css/style.css?v=4.1.0" rel="stylesheet">
<link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="/static/admin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link href="/static/admin/css/plugins/switchery/switchery.css" rel="stylesheet">
<link href="/static/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">

<link href="/static/admin/css/plugins/fileinput/fileinput.css" rel="stylesheet">
<link href="/static/admin/css/common.css" rel="stylesheet">

<style>
    .table > tbody > tr {
        text-align: center;
    }
    .table tr>th{
        text-align: center;
    }
    .dropdown-menu > .active > a{
        /*background-color:#1ab394;*/
    }
</style>
</head>



    <link rel="stylesheet" href="/static/admin/js/plugins/layui/css/layui.css">
    <script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>

    <script src="/static/admin/js/plugins/layui/layui.js"></script>



<div class="animated fadeIn">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>系统配置</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="panel blank-panel">

                                <div class="panel-heading">
                                    <div class="panel-options">

                                        <ul class="nav nav-tabs">
                                            <?php if(is_array($config_group_list) || $config_group_list instanceof \think\Collection || $config_group_list instanceof \think\Paginator): $i = 0; $__LIST__ = $config_group_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$group): $mod = ($i % 2 );++$i;?>
                                                <li <?php if($id == $key): ?>class="active"<?php endif; ?>>
                                                    <a  href="<?php echo url('?id='.$key); ?>" aria-expanded="true">
                                                        <?php echo htmlentities($group); ?>
                                                    </a>

                                                </li>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>

                                            <li class=""><a data-toggle="tab" href="tabs_panels.html#tab-7" aria-expanded="false"><i class="fa fa-plus"></i></a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>

                                <div class="panel-body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <form class="form-horizontal" method="post" >
                                        <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$config): $mod = ($i % 2 );++$i;?>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label"><?php echo htmlentities($config['title']); ?>：</label>
                                            <div class=" col-sm-4">
                                                <?php switch($config['type']): case "text": ?>
                                                        <!--文本-->
                                                        <input type="text" class="form-control" name="config[<?php echo htmlentities($config['name']); ?>]" value="<?php echo htmlentities($config['value']); ?>">
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--数字-->
                                                    <?php case "number": ?>
                                                        <input type="number" class="form-control" name="config[<?php echo htmlentities($config['name']); ?>]" value="<?php echo htmlentities($config['value']); ?>">
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--只读-->
                                                    <?php case "readonly": ?>
                                                        <input type="text" readonly class="form-control" name="config[<?php echo htmlentities($config['name']); ?>]" value="<?php echo htmlentities($config['value']); ?>">
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--多行文本-->
                                                    <?php case "textarea": ?>
                                                        <textarea name="config[<?php echo htmlentities($config['name']); ?>]" cols="75" rows="6"><?php echo htmlentities($config['value']); ?></textarea>
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; case "password": ?>
                                                        <input type="password" readonly class="form-control" name="config[<?php echo htmlentities($config['name']); ?>]" value="<?php echo htmlentities($config['value']); ?>">
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--单选-->
                                                    <?php case "radio": ?>
                                                        <div class="input-group col-sm-12">
                                                            <?php $_result=parse_config_attr($config['options']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                                <div class="radio i-checks col-sm-3">
                                                                    <label>
                                                                        <input type="radio" value="<?php echo htmlentities($key); ?>" <?php if($key == 1): ?>checked<?php endif; ?> name="config[<?php echo htmlentities($config['name']); ?>]"> <i></i> <?php echo htmlentities($vo); ?></label>
                                                                </div>
                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                        </div>
                                                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--多选-->
                                                    <?php case "checkbox": ?>
                                                        <div class="input-group col-sm-12">
                                                            <?php $_result=parse_config_attr($config['options']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                                <div class="checkbox-inline i-checks col-sm-3">
                                                                    <label>
                                                                        <input type="checkbox" value="<?php echo htmlentities($key); ?>" <?php if($key == 1): ?>checked<?php endif; ?> name="config[<?php echo htmlentities($config['name']); ?>]"> <i></i> <?php echo htmlentities($vo); ?></label>
                                                                </div>
                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                        </div>
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--下拉-->
                                                    <?php case "select": ?>
                                                        <select class="form-control m-b chosen-select" name="config[<?php echo htmlentities($config['name']); ?>]">
                                                            <?php $_result=parse_config_attr($config['options']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                            <option value="<?php echo htmlentities($key); ?>" <?php if($config['value'] == $key): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                        </select>
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; case "array": ?>
                                                        <textarea name="config[<?php echo htmlentities($config['name']); ?>]" cols="75" rows="6"><?php echo htmlentities($config['value']); ?></textarea>
                                                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                    <?php break; ?>
                                                    <!--单文件-->
                                                    <?php case "file": ?>
                                                    <input id="f_upload" type="file" class="file" multiple data-show-upload="false" data-show-caption="true" data-show-preview="true" showBrowse="true" />
                                                <!--<input id="input-2" name="input2" type="file fileloading" class="file" multiple-->
                                                       <!--readonly="false" disabled="false"  data-show-upload="false" data-show-caption="true" data-show-preview="true" data-allowed-file-extensions='["jpg","png"]'>-->
                                                <script>
                                                    $(".file").fileinput({
                                                        uploadUrl:"<%=basePath%>uploadFile",//上传的地址
                                                        uploadAsync:false, //默认异步上传
                                                        showUpload: true, //是否显示上传按钮,跟随文本框的那个
                                                        showRemove : true, //显示移除按钮,跟随文本框的那个
                                                        showCaption: true,//是否显示标题,就是那个文本框
                                                        showPreview : true, //是否显示预览,不写默认为true
                                                        dropZoneEnabled: true,//是否显示拖拽区域，默认不写为true，但是会占用很大区域
                                                        //minImageWidth: 50, //图片的最小宽度
                                                        //minImageHeight: 50,//图片的最小高度
                                                        //maxImageWidth: 1000,//图片的最大宽度
                                                        //maxImageHeight: 1000,//图片的最大高度
                                                        //maxFileSize: 0,//单位为kb，如果为0表示不限制文件大小
                                                        //minFileCount: 0,
                                                        maxFileCount: 1, //表示允许同时上传的最大文件个数
                                                        //enctype: 'multipart/form-data',
                                                        validateInitialCount:true,
                                                        previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
                                                        msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",
                                                        allowedFileTypes: ['text'],//配置允许文件上传的类型
                                                        allowedPreviewTypes : [ 'text'],//配置所有的被预览文件类型
//                                                        allowedPreviewMimeTypes : [ 'jpg', 'png', 'gif' ,'txt'],//控制被预览的所有mime类型
                                                        language : 'zh'
                                                    })
                                                    //异步上传返回结果处理
                                                    $('.myfile').on('fileerror', function(event, data, msg) {
                                                        console.log("fileerror");
                                                        console.log(data);
                                                    });
                                                    //异步上传返回结果处理
                                                    $(".myfile").on("fileuploaded", function (event, data, previewId, index) {
                                                        console.log("fileuploaded");
                                                        var ref=$(this).attr("data-ref");
                                                        $("input[name='"+ref+"']").val(data.response.url);

                                                    });

                                                    //同步上传错误处理
                                                    $('.myfile').on('filebatchuploaderror', function(event, data, msg) {
                                                        console.log("filebatchuploaderror");
                                                        console.log(data);
                                                    });

                                                    //同步上传返回结果处理
                                                    $(".myfile").on("filebatchuploadsuccess", function (event, data, previewId, index) {
                                                        console.log("filebatchuploadsuccess");
                                                        console.log(data);
                                                    });

                                                    //上传前
                                                    $('.myfile').on('filepreupload', function(event, data, previewId, index) {
                                                        console.log("filepreupload");
                                                    });
                                                </script>
                                                    <?php break; ?>
                                                    <!--日期-->
                                                    <?php case "date": ?>
                                                     <input type="text" class="form-control layui-date " name="" value=""   autocomplete="off" placeholder="" id="a<?php echo htmlentities($config['id']); ?>">
                                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> <?php echo htmlentities($config['remark']); ?></span>
                                                            <script type="text/javascript">
                                                                layui.use(['jquery', 'laydate', 'upload'], function() {
                                                                    var laydate=layui.laydate;
                                                                    laydate.render({
                                                                        elem: '#a<?php echo htmlentities($config['id']); ?>'
                                                                        ,type:'date'
                                                                    });
                                                                });
                                                            </script>
                                                    <?php break; ?>
                                                    <!--时间-->
                                                    <?php case "time": ?>
                                                    <input type="text" class="form-control layui-date " name="" value=""   autocomplete="off" placeholder="" id="a<?php echo htmlentities($config['id']); ?>">
                                                    <script type="text/javascript">
                                                        layui.use(['jquery', 'laydate', 'upload'], function() {
                                                            var laydate=layui.laydate;
                                                            laydate.render({
                                                                elem: '#a<?php echo htmlentities($config['id']); ?>'
                                                                ,type:'time'
                                                            });
                                                        });
                                                    </script>
                                                    <?php break; ?>
                                                     <!--日期+时间-->
                                                    <?php case "datetime": ?>
                                                    <input type="text" class="form-control layui-date " name="" value=""   autocomplete="off" placeholder="" id="a<?php echo htmlentities($config['id']); ?>">
                                                    <script type="text/javascript">
                                                        layui.use(['jquery', 'laydate', 'upload'], function() {
                                                            var laydate=layui.laydate;
                                                            laydate.render({
                                                                elem: '#a<?php echo htmlentities($config['id']); ?>'
                                                                ,type:'datetime'
                                                            });
                                                        });
                                                    </script>
                                                    <?php break; ?>

                                                    <!--日期范围选择-->
                                                    <?php case "daterange": ?>
                                                    <input type="text" class="form-control layui-date " name="" value=""   autocomplete="off" placeholder="" id="a<?php echo htmlentities($config['id']); ?>">
                                                    <script type="text/javascript">
                                                        layui.use(['jquery', 'laydate', 'upload'], function() {
                                                            var laydate=layui.laydate;
                                                            laydate.render({
                                                                elem: '#a<?php echo htmlentities($config['id']); ?>'
                                                                ,type:'date'
                                                                ,range: true
                                                            });
                                                        });
                                                    </script>
                                                    <?php break; ?>

                                                    <!--时间范围选择-->
                                                    <?php case "timerange": ?>
                                                    <input type="text" class="form-control layui-date " name="" value=""   autocomplete="off" placeholder="" id="a<?php echo htmlentities($config['id']); ?>">
                                                    <script type="text/javascript">
                                                        layui.use(['jquery', 'laydate', 'upload'], function() {
                                                            var laydate=layui.laydate;
                                                            laydate.render({
                                                                elem: '#a<?php echo htmlentities($config['id']); ?>'
                                                                ,type:'time'
                                                                ,range: true
                                                            });
                                                        });
                                                    </script>
                                                    <?php break; ?>

                                                    <!--日期+时间范围选择-->
                                                    <?php case "datetimerange": ?>
                                                    <input type="text" class="form-control layui-date " name="" value=""   autocomplete="off" placeholder="" id="a<?php echo htmlentities($config['id']); ?>">
                                                    <script type="text/javascript">
                                                        layui.use(['jquery', 'laydate', 'upload'], function() {
                                                            var laydate=layui.laydate;
                                                            laydate.render({
                                                                elem: '#a<?php echo htmlentities($config['id']); ?>'
                                                                ,type:'datetime'
                                                                ,range: true
                                                            });
                                                        });
                                                    </script>
                                                    <?php break; ?>

                                                <?php endswitch; ?>
                                            </div>
                                        </div>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                <div class="form-group">
                                                    <div class="col-sm-4 col-sm-offset-2">
                                                        <button class="btn btn-primary" type="submit">保存</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>



    



    <!-- 全局js -->
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/static/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/admin/js/plugins/layer/layer.min.js"></script>
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="/static/admin/js/plugins/switchery/switchery.js"></script><!--IOS开关样式-->

<!-- 自定义js -->
<script src="/static/admin/js/hplus.js?v=4.1.0"></script>
<script src="/static/admin/js/contabs.js"></script>
<script src="/static/admin/js/content.js"></script>

<script src="/static/admin/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/static/admin/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/static/admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<!-- 第三方插件 -->
<!--<script src="/static/admin/js/plugins/pace/pace.min.js"></script>-->
<script src="/static/admin/js/plugins/fileinput/fileinput.js"></script>
<script src="/static/admin/js/plugins/fileinput/fileinput_locale_zh.js"></script>
<!-- 欢迎信息 -->
<script src="/static/admin/js/welcome.js"></script>


<script src="/static/admin/js/common.js"></script>

<script src="/static/admin/js/ry-ui.js"></script>
<script>
    $(document).ready(function(){
        $(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green"});
        //IOS开关样式配置
        var elem = document.querySelector('.js-switch');
        var switchery = new Switchery(elem, {
            color: '#1AB394'
        });
        var config = {
            '.chosen-select': {},
        }
    });

</script>



